package hlhj.fhp.supreme.activitys

import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import hlhj.fhp.supreme.BaseAty
import hlhj.fhp.supreme.R
import kotlinx.android.synthetic.main.activity_select_bank_aty.*

class SelectBankAty : BaseAty() {
    override fun getContentId(): Int {
        return R.layout.activity_select_bank_aty
    }


    override fun initListener() {

        btExit.setOnClickListener {
            finish()
        }
        val intent = Intent()
        lo1.setOnClickListener {
            intent.putExtra("bankName","中国农业银行")
            setResult(-1,intent)
            finish()
        }
        lo2.setOnClickListener {
            intent.putExtra("bankName","中国工商银行")
            setResult(-1,intent)
            finish()
        }
        lo3.setOnClickListener {
            intent.putExtra("bankName","中国建设银行")
            setResult(-1,intent)
            finish()
        }
        lo4.setOnClickListener {
            intent.putExtra("bankName","中国银行")
            setResult(-1,intent)
            finish()
        }

    }

}
